<?php
header('Content-Type:text/html; charset=UTF-8');
session_start();
if (empty($_SESSION['user'])) {
    header('location:dl.php');
    exit();
}
@$ddid = $_REQUEST['ddid'];
$pdo = new PDO('mysql:dbname=dcxt;charset=utf8', 'root');
if ($ddid != null) {
    $s6 = $pdo->prepare('update dingdan set zt=:xx where dingdan.id=:yy');
    $s6->execute(array(
        'xx'=>'已付款',
        'yy' => $ddid
    ));
}
?>
<html>
<head>
<title>Bootstrap 模板</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
	charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="web/css/bootstrap.min.css" rel="stylesheet">
<script src="web/js/jquery-1.11.1.min.js"></script>
<script src="web/js/bootstrap.min.js"></script>
<!--[if lt IE 9]>
		<script src="js/html5shiv.js"></script>
		<script src="js/respond.min.js"></script>
		<![endif]-->
</head>
<body>
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button class="close" data-dismiss="modal">&times;</button>
				<h3 class="modal-title">支付</h3>
			</div>
			<div class="modal-body">打开钱包支付吧~</div>
			<div class="modal-footer">
				<a href="#kfq" data-toggle="modal" class="btn btn-default">确定</a>
				<a href="dcxt.php" class="btn btn-default">取消</a>
			</div>
		</div>
	</div>
	<div class="modal" id="kfq">
    	<div class="modal-dialog">
    		<div class="modal-content">
    			<div class="modal-header">
    				<button class="close" data-dismiss="modal">&times;</button>
    				<h3 class="modal-title">有没有</h3>
    			</div>
    			<div class="modal-body">快付钱吧~</div>
    			<div class="modal-footer">
    				<a href="#kfq"  data-toggle="modal" class="btn btn-default">确定</a>
    				<a href="dcxt.php"  class="btn btn-default">取消</a>
    			</div>
    		</div>
    	</div>
	</div>
</body>
</html>
